package com.atguigu.webapp.mapper;

import com.atguigu.model.pojo.RoomInfo;
import com.atguigu.webapp.vo.room.RoomDetailVo;
import com.atguigu.webapp.vo.room.RoomItemVo;
import com.atguigu.webapp.vo.room.RoomQueryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.math.BigDecimal;

/**
 * @Author 梅超凡
 * @Date 2024/11/12~22:26
 * @Description  针对表【room_info(房间信息表)】的数据库操作Mapper
 * @pojo com.atguigu.model.pojo.RoomInfo
*/
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {


    IPage<RoomItemVo> pageRoomItem(IPage<RoomItemVo> iPage, RoomQueryVo queryVo);


    RoomInfo selectRoomById(Long id);

    BigDecimal selectMinRentByApartmentId(Long apartmentId);

    Page<RoomItemVo> pageItemByApartmentId(IPage<RoomItemVo> iPage, Long id);
}